(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/home/components/quick-order/other-demand-popup" ], {
    "0d42": function(e, n, o) {
        o.r(n);
        var t = o("e660"), a = o.n(t);
        for (var i in t) [ "default" ].indexOf(i) < 0 && function(e) {
            o.d(n, e, function() {
                return t[e];
            });
        }(i);
        n.default = a.a;
    },
    3536: function(e, n, o) {
        var t = o("7cec");
        o.n(t).a;
    },
    "7cec": function(e, n, o) {},
    8572: function(e, n, o) {
        o.d(n, "b", function() {
            return t;
        }), o.d(n, "c", function() {
            return a;
        }), o.d(n, "a", function() {});
        var t = function() {
            var e = this, n = (e.$createElement, e._self._c, e.showSpec ? e.__map(e.miniConfirmOrderConfirm.spec_req.list, function(n, o) {
                return {
                    $orig: e.__get_orig(n),
                    g0: e.specCache.includes(n.name),
                    g1: e.miniConfirmOrderConfirm.spec_req.list.length
                };
            }) : null);
            e._isMounted || (e.e0 = function(n, o) {
                var t = arguments[arguments.length - 1].currentTarget.dataset, a = t.eventParams || t["event-params"];
                o = a.index, e.invoiceIndexCache = o;
            }), e.$mp.data = Object.assign({}, {
                $root: {
                    l0: n
                }
            });
        }, a = [];
    },
    "9ff2": function(e, n, o) {
        o.r(n);
        var t = o("8572"), a = o("0d42");
        for (var i in a) [ "default" ].indexOf(i) < 0 && function(e) {
            o.d(n, e, function() {
                return a[e];
            });
        }(i);
        o("3536");
        var c = o("f0c5"), r = Object(c.a)(a.default, t.b, t.c, !1, null, "7eda5296", null, !1, t.a, void 0);
        n.default = r.exports;
    },
    e660: function(e, n, o) {
        (function(e) {
            var t = o("4ea4").default;
            Object.defineProperty(n, "__esModule", {
                value: !0
            }), n.default = void 0;
            var a = t(o("a34a")), i = t(o("ded3")), c = t(o("448a")), r = t(o("c973")), u = o("fd0e"), l = o("68d3"), d = o("aa79"), v = o("05dc"), f = o("665c"), s = o("0d12"), p = {
                setup: function(n, o) {
                    var t = o.emit;
                    (0, u.onBeforeMount)(function() {
                        t("loaded", {
                            open: _
                        });
                    });
                    var p = (0, u.ref)(!1), m = (0, u.ref)(-1), h = (0, u.ref)(""), b = (0, u.computed)(function() {
                        var e, n, o;
                        return (null === (e = d.miniConfirmOrderConfirm.value) || void 0 === e || null === (n = e.spec_req) || void 0 === n || null === (o = n.list) || void 0 === o ? void 0 : o.length) > 0;
                    }), g = null;
                    function _() {
                        return k.apply(this, arguments);
                    }
                    function k() {
                        return (k = (0, r.default)(a.default.mark(function n() {
                            var o, t, i, r, u, d;
                            return a.default.wrap(function(n) {
                                for (;;) switch (n.prev = n.next) {
                                  case 0:
                                    return e.hideTabBar(), setTimeout(function() {
                                        p.value = !0;
                                    }, s.tabPageHideTabBarTimeout.value), l.invoiceIndex.value > -1 && (m.value = l.invoiceIndex.value), 
                                    (null === (o = l.currentVehicleInvoice.value) || void 0 === o || null === (t = o.list) || void 0 === t ? void 0 : t.length) > 0 && -1 === l.invoiceIndex.value && (m.value = 0), 
                                    1 === (null === (i = l.currentVehicleInvoice.value) || void 0 === i || null === (r = i.list) || void 0 === r ? void 0 : r.length) && (m.value = 0), 
                                    null !== (u = l.currentVehicleInvoice.value) && void 0 !== u && null !== (d = u.list) && void 0 !== d && d.length || (m.value = -1), 
                                    h.value = l.remark.value, C.value = (0, c.default)(l.selectedSpec.value), n.abrupt("return", new Promise(function(e) {
                                        g = e;
                                    }));

                                  case 9:
                                  case "end":
                                    return n.stop();
                                }
                            }, n);
                        }))).apply(this, arguments);
                    }
                    function x() {
                        var n, o = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "cancel";
                        p.value = !1, setTimeout(function() {
                            e.showTabBar();
                        }, s.tabPageHideTabBarTimeout.value), null === (n = g) || void 0 === n || n(o), 
                        "cancel" === o && O("关闭");
                    }
                    var C = (0, u.ref)([ "", "", "" ]);
                    var I = (0, f.useGetters)().commonStatisticsState;
                    function O(e) {
                        var n = (l.invoiceInfo.value || {}).invoice_type;
                        (0, v.statistics)("homepage_other_request_popup_click", (0, i.default)((0, i.default)({}, I.value), {}, {
                            module_name: e,
                            invoice_type: 2 === n ? "纸质专票" : 1 === n ? "电子普票" : "",
                            other_service: C.value.filter(Boolean).join(",")
                        }));
                    }
                    return Object.assign({
                        currentVehicleInvoice: l.currentVehicleInvoice,
                        miniConfirmOrderConfirm: d.miniConfirmOrderConfirm,
                        show: p,
                        invoiceIndexCache: m,
                        remarkCache: h,
                        showSpec: b,
                        hide: x,
                        specCache: C,
                        selectSpec: function(e, n) {
                            C.value[n] ? C.value.splice(n, 1, "") : C.value.splice(n, 1, e);
                        },
                        confirm: function() {
                            l.invoiceIndex.value = m.value, l.selectedSpec.value = (0, c.default)(C.value), 
                            l.remark.value = h.value, l.orderRemark.value = [].concat((0, c.default)(C.value.filter(Boolean).map(function(e, n, o) {
                                var t, a;
                                return n === o.length - 1 ? "".concat(e).concat((null === (t = d.commonConfig.value) || void 0 === t || null === (a = t.mini_mode_config) || void 0 === a ? void 0 : a.spec_req_selected) || "") : e;
                            })), [ h.value ]).filter(Boolean).join("，"), x("ok"), O("确定");
                        }
                    }, {
                        open: _
                    });
                }
            };
            p.components = Object.assign({
                BottomPopup: function() {
                    Promise.all([ o.e("common/vendor"), o.e("components/bottom-popup/index") ]).then(function() {
                        return resolve(o("54a1"));
                    }.bind(null, o)).catch(o.oe);
                },
                HCheckbox: function() {
                    o.e("components/h-checkbox/index").then(function() {
                        return resolve(o("45cc"));
                    }.bind(null, o)).catch(o.oe);
                },
                HTextarea: function() {
                    Promise.all([ o.e("common/vendor"), o.e("components/h-textarea/index") ]).then(function() {
                        return resolve(o("7031"));
                    }.bind(null, o)).catch(o.oe);
                },
                KeyboardPadding: function() {
                    Promise.all([ o.e("common/vendor"), o.e("components/keybord/keyboard-padding") ]).then(function() {
                        return resolve(o("a8cc"));
                    }.bind(null, o)).catch(o.oe);
                }
            }, p.components);
            var m = p;
            n.default = m;
        }).call(this, o("543d").default);
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "pages/home/components/quick-order/other-demand-popup-create-component", {
    "pages/home/components/quick-order/other-demand-popup-create-component": function(e, n, o) {
        o("543d").createComponent(o("9ff2"));
    }
}, [ [ "pages/home/components/quick-order/other-demand-popup-create-component" ] ] ]);